﻿namespace ConsoleApp1.utils;

/**
 * 返回全局参数, 如文件路径
 */
public class GlobalParameters
{
    /**
     * 获取每一个Excel的位置
     * @param: mum Excel的序号,
     *          本项目中0, 1 为输入Excel, 2为输出Excel
     */
    public static string getExcelLoc(int num)
    {
        if (num == 0)
        {
            return getFolderLoc() + "服务器上3张表导出20211021.xlsx";
        }else if (num == 1)
        {
            return getFolderLoc() + "20211021投料实绩.xls";
        }else if (num == 2)
        {
            return getFolderLoc() + "计算结果.xls";
        }
        else
        {
            return "error";
        }
    }

    private static string getFolderLoc()
    {
        // todo: 修改这个字符串 返回
        string folderPath = System.Environment.CurrentDirectory;
        return @"E:\work_install\riderProject\consoleApp1\WinFormsApp1\WinFormsApp1\data\";
    }
}